﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    Inherits="Nivdal.EventLog" Title="" Theme="SkinFile" CodeBehind="EventLog.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="basic_element">
    <div class="red_title">
       <asp:Label ID="PageTitleLabel" runat="server" Text="Admin >> Nivdal event log" CssClass="white_title"></asp:Label>
    </div>
    <div class="padding5">

        <asp:GridView ID="EventLogGridView" runat="server" AutoGenerateColumns="false" SkinID="Professional"
            DataSourceID="EventLogSqlSource" AllowPaging="true" PageSize="50">
            <PagerSettings FirstPageText="<%$ Resources:Resource, FirstPage %>" LastPageText="<%$ Resources:Resource, LastPage %>"
                Mode="NumericFirstLast" PageButtonCount="10" Position="Bottom" />
            <PagerStyle CssClass="pagination" HorizontalAlign="Center" />
            <Columns>
                <asp:TemplateField HeaderText="Date" ItemStyle-Width="25%">
                    <ItemTemplate>
                        <asp:Label ID="DateLabel" runat="server" Text='<%# Eval("Date") %>' SkinID="GridLabel"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Sourse" ItemStyle-Width="25%">
                    <ItemTemplate>
                        <asp:Label ID="SourseLabel" runat="server" Text='<%# Eval("DataSourse") %>' SkinID="GridLabel"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField ItemStyle-Width="50%" HeaderText="Event">
                    <ItemTemplate>
                        <asp:Label ID="EventLabel" runat="server" Text='<%# Eval("DataString") %>' SkinID="GridLabel"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="EventLogSqlSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="Nivdal_GetEventLog" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
        </div>
    </div>
    
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PageNamePlaceHolder" runat="Server">
    <asp:Label ID="PageNameLabel" runat="server" Text="Admin >> Nivdal event log" CssClass="PageNameContentStyle"></asp:Label>
</asp:Content>
